import { of } from 'rxjs';

const source$ = of('Hello', 'World');
source$.subscribe(value => console.log(value)); // 输出: Hello, World

const source1$ = of([1, 2, 3, 4, 5]);
source1$.subscribe(value => console.log(value))
